package com.tj.snow.domain;

import java.util.ArrayList;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class Course {


	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("courseId", courseId)
				.append("courseNo", courseNo).append("courseName", courseName).append("credit", credit)
				.toString();
	}

	public static void main(String[] args) {
		Course c = new Course();
		c.setCourseName("Java");
		c.setCredit(4);
		System.out.println(c);
	}

	private Integer courseId;

	private String courseNo;

	private String courseName;

	private int credit;

	private ArrayList<Score> scores = new ArrayList<Score>();

	public Course() {
		super();
	}

	public Course(String courseNo, String courseName, int credit) {
		super();
		this.courseNo = courseNo;
		this.courseName = courseName;
		this.credit = credit;
	}

	public Integer getCourseId() {
		return courseId;
	}

	public String getCourseName() {
		return courseName;
	}

	public String getCourseNo() {
		return courseNo;
	}

	public int getCredit() {
		return credit;
	}

	public ArrayList<Score> getScores() {
		return scores;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public void setCourseNo(String courseNo) {
		this.courseNo = courseNo;
	}

	public void setCredit(int credit) {
		this.credit = credit;
	}

	public void setScores(ArrayList<Score> scores) {
		this.scores = scores;
	}

}
